package com.ysl.dao;

import com.ysl.bean.Condition;
import com.ysl.bean.UserDemo;

import java.util.List;

public interface UserDao {
    int insertUser(UserDemo user) throws Exception;
    int deleteUser(int id) throws Exception;
//    List<UserDemo> selectAllUser()throws Exception;
    UserDemo selectUser(String username,String userpwd) throws Exception;
    UserDemo selectUserId(int id) throws Exception;
    int updateUser(UserDemo user) throws Exception;
    Integer selectUsersCount(Condition condition)throws Exception;
    List<UserDemo> selectUsers(Condition condition,Integer p,Integer pageSize)throws Exception;
    UserDemo selectUserName(String username)throws Exception;
}
